﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsMstsc.Models
{
    /// <summary>
    /// mstsc配置
    /// </summary>
    public class MstscConfig
    {
        /// <summary>
        /// 端口
        /// </summary>
        public int Port { get; set; }
        /// <summary>
        /// IP
        /// </summary>
        public string IP {  get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? Password { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string? Describe { get; set; }
        /// <summary>
        /// 连接名
        /// </summary>
        public string? Name { get; set; }
        /// <summary>
        /// 是否全屏
        /// </summary>
        public bool IsFullScreen { get; set; }
        /// <summary>
        /// tostring
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            string full = this.IsFullScreen ? "全屏模式" : "窗体模式";
            return string.Format("连接名：{0}  地址：{1}:{2}  用户名：{3} {4}  连接模式：{5}", this.Name,this.IP,this.Port,this.UserName, this.Describe, full);
        }
    }
}
